<% layout('/layout/default.html', {title: '枣庄app', libs: ['layout','validate', 'login'], bodyClass: 'login-page'}){ %>
<% var productName = @Global.getProperty('productName'), productVersion = @Global.getProperty('version'); %>
<div class="lowin">
	<h1><b>${productName}</b> <small>${productVersion}</small></h1>
	<div class="lowin-wrapper">
		<div class="lowin-box lowin-login" >
			<div class="lowin-box-inner">
				<form id="loginForm" action="${ctx}/login" method="post">
					<div class="lowin-group has-feedback">
						<input type="text" id="username" name="username" value="" autocomplete="username"
							   class="lowin-input required" data-msg-required=""
							   placeholder="" />
					</div>
					<div class="lowin-group has-feedback">
						<span class="glyphicon form-control-feedback" title=""
						  onmousedown="$('#password').attr('type','text')"
						  onmouseup="$('#password').attr('type','password')"></span>
						<input type="password" id="password" name="password" value="" autocomplete="current-password"
							   class="lowin-input required" data-msg-required=""
							   placeholder=""  />
					</div>

					<!-- <% if(isValidateCodeLogin) {%>   <% } %> -->
					<div class="lowin-group form-group has-feedback" id="isValidCodeLogin" style="display:${isValidateCodeLogin?'blank':'none'}">
						<#form:validcode name="validateCode" />
					</div>
					<div class="lowin-group">
						<div class="checkbox icheck">
							<label title="">
								<input type="checkbox" name="rememberUserCode" data-style="square-blue">&nbsp;<b>记住我</b>
								<input type="checkbox" name="rememberMe" data-style="square-blue">&nbsp;<b>记住密码</b>
							</label>
						</div>
					</div>
					<button class="lowin-btn login-btn">
						登陆
					</button>
					<div class="text-foot">
						&copy; ${@DateUtils.getYear()} ${productName} - Powered By <a href="http://zzzg.gov.cn">zzzg.gov.cn</a>
					</div>
				</form>
			</div>
		</div>
	</div>
</div>
<% } %>
<script language="JavaScript">
    //判断当前窗口是否有顶级窗口，如果有就让当前的窗口的地址栏发生变化，
    //这样就可以让登陆窗口显示在整个窗口了

</script>